package com.my.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Image implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    private Long imageType;
    private String link;
    @TableLogic
    private boolean isDelete;
    private Date createTime;
    private Date updateTime;

    @TableField(exist = false)
    private String typeName;

}
